﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Xml;

namespace DotNET4Study.MySection
{
    class MySectionConsole
    {
        public static void Execute()
        {
            MyConfig config = (MyConfig)ConfigurationManager.GetSection("MySection");
            string name = config.Name;
            XmlNode node= config.Foo;
            Console.WriteLine("name为{0}",name);
            Console.WriteLine("node为{0}",node.OuterXml);
        }
    }
}
